/*
 * @Author: 脉迈
 * @Date: 2021-10-18 14:47:29
 * @LastEditors: 脉迈
 * @LastEditTime: 2021-10-27 18:03:12
 */
export const blockData = {
  style: {
    position: "relative",
    height: 300,
    backgroundColor: "",
    backgroundImage: "",
    backgroundSize: "cover",
  },
  children: [],
};

export const blockImage = {
  name: "blockImage",
  style: {
    position: "absolute",
    width: 100,
    height: 30,
    top: 10,
    left: 0,
    rotate: 0,
    zIndex: 1,

    opacity: 1,
  },
  properties: {
    src: {
      label: "图片地址",
      value:
        "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
      format: "image",
      editorType: "Input",
      attr: "src",
    },
    link: {
      label: "跳转链接",
      value: "https://www.baidu.com",
      format: "text",
      editorType: "Input",
      attr: "link",
    },
  },
  properStyle: {},
};

export const blockText = {
  name: "blockText",
  style: {
    position: "absolute",
    width: 100,
    height: 30,
    top: 10,
    left: 0,
    rotate: 0,
    zIndex: 1,
    opacity: 1,
  },
  properties: {
    text: {
      label: "文本",
      value: "请输入文本",
      format: "text",
      editorType: "Input",
      attr: "text",
    },
    font: {
      label: "字体样式",
      value: {
        fontWeight: "normal",
        fontStyle: "italic",
        textDecoration: "unset",
        textAlign: "left",
        color: "rgba(0,0,0,1)",
      },
      editorType: "FontType",
      attr: "text",
    },
  },
  properStyle: {
    lineHeight: {
      label: "行高",
      value: "1.8",
      format: "lineHeight",
      editorType: "Input",
      attr: "lineHeight",
    },
    fontFamily: {
      label: "字体",
      value: "fontA",
      format: "fontFamily",
      editorType: "Select",
      options: [
        {
          label: "默认字体",
          value: "fontA",
        },
        {
          label: "B字体",
          value: "fontB",
        },
      ],
      attr: "fontFamily",
    },
  },
};

export const blockButton = {
  name: "blockButton",
  style: {
    position: "absolute",
    width: 194,
    height: 32,
    top: 10,
    left: 0,
    rotate: 0,
    zIndex: 1,
    opacity: 1,
  },
  properties: {
    text: {
      label: "文本",
      value: "按钮",
      format: "text",
      editorType: "Input",
      attr: "text",
    },
    style: {
      label: "样式",
      value: {
        borderColor: "transparent",
        borderSize: 1,
        borderRadius: 10,
        fontSize: 16,
        color: "rgba(255,255,255,1)",
        backgroundColor: "rgba(24,144,255,1)",
        textAlign: "center",
      },
      attr: "style",
      editorType: "StyleType",
    },
    link: {
      label: "跳转链接",
      value: "https://www.baidu.com",
      format: "text",
      editorType: "Input",
      attr: "link",
    },
  },
  properStyle: {},
};
